import { POST, GET } from './http'

// 登录
export const loginByPhone = p => POST('/login/cellphone/?time=' + new Date().getTime(), p) // 手机登录
export const loginByEmail = p => POST('/login/?time=' + new Date().getTime(), p) // 邮箱登录

// 用户
export const loginStatus = p => POST('/login/status/?time=' + new Date().getTime(), p) // 获取登录状态
export const getUserDetail = p => POST('/login/status/?time=' + new Date().getTime(), p) // 获取用户详情
export const getAccentInfo = p => POST('/user/account/?time=' + new Date().getTime(), p) // 获取账号信息


// 发现音乐
export const findMusicHomePage = p => POST('/homepage/block/page/?time=' + new Date().getTime(), p) // 获取首页数据
export const findMusicBanner = p => POST('/banner/?time=' + new Date().getTime(), p) // 首页banner
export const findMusicPersonalized = p => POST('/personalized/?time=' + new Date().getTime(), p) // 首页热门歌单
export const findPlaylistByListId = p => POST('/playlist/detail/?time=' + new Date().getTime(), p) // 获取歌单详情
export const getSongUrlById = p => POST('/song/url/?time=' + new Date().getTime(), p) // 获取音乐url